package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ruiyifeng123
 * @since 2019-03-19
 */
@TableName("wz_rebate_share")
public class WzRebateShare extends Model<WzRebateShare> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "rebate_share_id", type = IdType.AUTO)
    private Long rebateShareId;
    /**
     * 返利id
     */
    @TableField("map_rebate_id")
    private Long mapRebateId;
    /**
     * 用户返利活动id
     */
    @TableField("user_rebate_id")
    private Long userRebateId;
    /**
     * 微信id
     */
    private String openid;
    /**
     * 昵称
     */
    @TableField("nick_name")
    private String nickName;
    /**
     * 性别:1-男性，2-女性
     */
    private Integer gender;
    /**
     * 用户头像
     */
    @TableField("avatar_url")
    private String avatarUrl;
    private String unionid;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Long getRebateShareId() {
        return rebateShareId;
    }

    public void setRebateShareId(Long rebateShareId) {
        this.rebateShareId = rebateShareId;
    }

    public Long getMapRebateId() {
        return mapRebateId;
    }

    public void setMapRebateId(Long mapRebateId) {
        this.mapRebateId = mapRebateId;
    }

    public Long getUserRebateId() {
        return userRebateId;
    }

    public void setUserRebateId(Long userRebateId) {
        this.userRebateId = userRebateId;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.rebateShareId;
    }

    @Override
    public String toString() {
        return "WzRebateShare{" +
        "rebateShareId=" + rebateShareId +
        ", mapRebateId=" + mapRebateId +
        ", userRebateId=" + userRebateId +
        ", openid=" + openid +
        ", nickName=" + nickName +
        ", gender=" + gender +
        ", avatarUrl=" + avatarUrl +
        ", unionid=" + unionid +
        ", createTime=" + createTime +
        "}";
    }
}
